package Fieldo2;

public class Book {private String bookName;
    private String author;
    private String publisher;
    private double price;
    public void setBookName(String bookNameparam){
        System.out.println("数据传过来了："+bookNameparam);
        bookName = bookNameparam;
    }
    public String getBookName(){
        return bookName;
    }
    public void setAuthor(String authorparam){
        author =authorparam;
    }
    public String getAuthor(){
        return author;
    }
    public void setPublisher(String publisherparam){
        publisher = publisherparam;
    }
    public String getPublisher(){
        return publisher;
    }
    public void setPrice(double priceparam){
        price = priceparam;
    }
    public double getPrice(){
        return price;
    }
    public String getBookInfo(){
        return "书名：" + bookName + "作者：" + author + "出版社名：" + publisher + "价格" + price;
    }

}
